historytest

package
v1.25.0-113.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package historytest contains library test functions for history.NewClient that use ahistory task queue manager. These are not test functions themselves because we construct database clients in another package, which will in turn call this function, but we don't want to put the testing logic there because it's not specific to any database, but it is specific to the history package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestClient

func TestClient(t *testing.T, historyTaskQueueManager persistence.HistoryTaskQueueManager)

TestClient works by doing the following:

  1. Enqueue some tasks
  2. Start a server which serves the DLQ endpoints
  3. Create a client which connects to the server
  4. Use the client to read the tasks

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL