Don't defer that
@@ -45,7 +45,6 @@ func Test_Aggregations(t *testing.T) {
QueryMaximumResults: 10000,
MaxImportGoroutinesFactor: 1,
}, &fakeRemoteClient{}, &fakeNodeResolver{}, &fakeRemoteNodeClient{}, nil)
- defer repo.Shutdown(context.TODO())
repo.SetSchemaGetter(schemaGetter)
err := repo.WaitForStartup(testCtx())
require.Nil(t, err)
