MCPcopy Create free account
hub / github.com/temporalio/temporal / TestSQLiteTaskQueueTaskSuite

Function TestSQLiteTaskQueueTaskSuite

common/persistence/tests/sqlite_test.go:234–256  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

232}
233
234func TestSQLiteTaskQueueTaskSuite(t *testing.T) {
235 t.Parallel()
236 cfg := NewSQLiteMemoryConfig()
237 logger := log.NewNoopLogger()
238 factory := sql.NewFactory(
239 *cfg,
240 resolver.NewNoopResolver(),
241 testSQLiteClusterName,
242 logger,
243 metrics.NoopMetricsHandler,
244 serialization.NewSerializer(),
245 )
246 taskQueueStore, err := factory.NewTaskStore()
247 if err != nil {
248 t.Fatalf("unable to create SQLite DB: %v", err)
249 }
250 defer func() {
251 factory.Close()
252 }()
253
254 s := NewTaskQueueTaskSuite(t, taskQueueStore, logger)
255 suite.Run(t, s)
256}
257
258func TestSQLiteTaskQueueFairTaskSuite(t *testing.T) {
259 t.Parallel()

Callers

nothing calls this directly

Calls 10

NewTaskStoreMethod · 0.95
CloseMethod · 0.95
NewNoopLoggerFunction · 0.92
NewFactoryFunction · 0.92
NewNoopResolverFunction · 0.92
NewSerializerFunction · 0.92
NewSQLiteMemoryConfigFunction · 0.85
NewTaskQueueTaskSuiteFunction · 0.85
FatalfMethod · 0.65
RunMethod · 0.65

Tested by

no test coverage detected