Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cicd tests #985

Merged
merged 4 commits into from
Apr 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions src/main/java/io/supertokens/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@
import io.supertokens.pluginInterface.exceptions.DbInitException;
import io.supertokens.pluginInterface.exceptions.InvalidConfigException;
import io.supertokens.pluginInterface.exceptions.StorageQueryException;
import io.supertokens.pluginInterface.multitenancy.TenantConfig;
import io.supertokens.pluginInterface.multitenancy.TenantIdentifier;
import io.supertokens.session.refreshToken.RefreshTokenKey;
import io.supertokens.signingkeys.AccessTokenSigningKey;
import io.supertokens.signingkeys.JWTSigningKey;
import io.supertokens.signingkeys.SigningKeys;
import io.supertokens.storageLayer.StorageLayer;
import io.supertokens.version.Version;
import io.supertokens.webserver.Webserver;
Expand Down Expand Up @@ -210,12 +205,9 @@ private void init() throws IOException, StorageQueryException {
MultitenancyHelper.getInstance(this).loadConfig(new ArrayList<>());

if (!StorageLayer.isInMemDb(this)) {
// we want to load storage layer once again so that the base storage also contains the right
// tenant identifier set passed to the init. So we close the base storage layer and also clear
// all the resources for storage layer
StorageLayer.getBaseStorage(this).stopLogging();
// we want to init storage connection once again so that the base storage also contains the right
// tenant identifier set passed to the init. So we call the resetPostConnectCallbackForBaseTenantStorage.
StorageLayer.getBaseStorage(this).close();
this.getResourceDistributor().clearAllResourcesWithResourceKey(StorageLayer.RESOURCE_KEY);
}

MultitenancyHelper.getInstance(this).loadStorageLayer();
Expand Down
Loading