(t testing.TB)
| 582 | } |
| 583 | |
| 584 | func defaultInstanceAndTmpDir(t testing.TB) (*instance, *LiveStore) { |
| 585 | tmpDir := t.TempDir() |
| 586 | |
| 587 | liveStore, err := defaultLiveStore(t, tmpDir) |
| 588 | require.NoError(t, err) |
| 589 | liveStore.cfg.QueryBlockConcurrency = 1 |
| 590 | |
| 591 | // Create a fake instance for testing |
| 592 | instance, err := liveStore.getOrCreateInstance(testTenantID) |
| 593 | require.NoError(t, err, "unexpected error creating new instance") |
| 594 | |
| 595 | return instance, liveStore |
| 596 | } |
| 597 | |
| 598 | func defaultConfig(t testing.TB, tmpDir string) Config { |
| 599 | cfg := Config{} |
no test coverage detected
searching dependent graphs…