Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Apr 2, 2024
1 parent f0317d3 commit 43d2455
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/java/io/supertokens/test/AuthRecipeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import io.supertokens.storageLayer.StorageLayer;
import io.supertokens.thirdparty.ThirdParty;
import io.supertokens.usermetadata.UserMetadata;
import io.supertokens.version.Version;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Rule;
Expand Down Expand Up @@ -488,6 +489,8 @@ public void randomPaginationTest() throws Exception {
fail();
}

boolean isMySQL = Version.getVersion(process.getProcess()).getPluginName().equals("mysql");

for (int limit : limits) {

// now we paginate in asc order
Expand All @@ -497,6 +500,9 @@ public void randomPaginationTest() throws Exception {
if (o1.timeJoined != o2.timeJoined) {
return (int) (o1.timeJoined - o2.timeJoined);
}
if (isMySQL) {
return o1.id.compareTo(o2.id);
}
return o2.id.compareTo(o1.id);
});

Expand Down

0 comments on commit 43d2455

Please sign in to comment.