CreateStoreAndBootstrap creates a mock store and bootstrap it.
(t *testing.T)
| 40 | |
| 41 | // CreateStoreAndBootstrap creates a mock store and bootstrap it. |
| 42 | func CreateStoreAndBootstrap(t *testing.T) (kv.Storage, *domain.Domain) { |
| 43 | testenv.SetGOMAXPROCSForTest() |
| 44 | store, err := mockstore.NewMockStore(mockstore.WithStoreType(mockstore.EmbedUnistore)) |
| 45 | require.NoError(t, err) |
| 46 | dom, err := BootstrapSession(store) |
| 47 | require.NoError(t, err) |
| 48 | return store, dom |
| 49 | } |
| 50 | |
| 51 | var sessionKitIDGenerator atomicutil.Uint64 |
| 52 |