Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang committed Aug 11, 2022
1 parent 8e84e8e commit 483b2ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;

import me.ahoo.cosid.converter.RadixIdConverter;
import me.ahoo.cosid.test.ConcurrentGenerateStingSpec;

import org.junit.jupiter.api.Assertions;
Expand Down Expand Up @@ -51,7 +52,7 @@ void generateAsState() {
@Test
void customizeOverflowMachineId() {
Assertions.assertThrows(IllegalArgumentException.class, () -> {
new Radix36CosIdGenerator(65536);
new Radix36CosIdGenerator(~(-1 << DEFAULT_MACHINE_BIT) + 1);
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void generateAsState() {
@Test
void customizeOverflowMachineId() {
Assertions.assertThrows(IllegalArgumentException.class, () -> {
new Radix62CosIdGenerator(65536);
new Radix62CosIdGenerator(~(-1 << DEFAULT_MACHINE_BIT) + 1);
});
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#

group=me.ahoo.cosid
version=1.14.0
version=1.14.1

description=Universal, flexible, high-performance distributed ID generator.
website=https://github.com/Ahoo-Wang/CosId
Expand Down

0 comments on commit 483b2ee

Please sign in to comment.