func (e *Environment) Close(ctx context.Context, tb testing.TB) {
	tb.Helper()

	if err := e.RepositoryWriter.Close(ctx); err != nil {
		tb.Fatalf("unable to close: %v", err)
	}

	if e.connected {
		if err := repo.Disconnect(ctx, e.ConfigFile()); err != nil {
			tb.Errorf("error disconnecting: %v", err)
		}
	}

	if err := os.Remove(e.configDir); err != nil {
		// should be empty, assuming Disconnect was successful
		tb.Errorf("error removing config directory: %v", err)
	}
}
// Close closes testing environment.
Close closes testing environment.
// Close closes testing environment .
func (e *Environment) Close(ctx context.Context, tb testing.TB) {
	tb.Helper()
	if err := e.RepositoryWriter.Close(ctx); err != nil {
		tb.Fatalf("unable to close: %v", err)
	}
	if e.connected {
		if err := repo.Disconnect(ctx, e.ConfigFile()); err != nil {
			tb.Errorf("error disconnecting: %v", err)
		}
	}
	if err := os.Remove(e.configDir); err != nil {
		tb.Errorf("error removing config directory: %v", err)
	}
}
func ( e * Environment ) Close ( ctx context . Context , tb testing . TB ) { tb . Helper ( ) if err := e . RepositoryWriter . Close ( ctx ) ; err != nil { tb . Fatalf ( " " , err ) } if e . connected { if err := repo . Disconnect ( ctx , e . ConfigFile ( ) ) ; err != nil { tb . Errorf ( " " , err ) } } if err := os . Remove ( e . configDir ) ; err != nil { tb . Errorf ( " " , err ) } }
Close closes testing environment.
Close closes testing environment .
// should be empty, assuming Disconnect was successful