Skip to content

Commit 0f6b757

Browse files
author
Seulgi Kim
committed
Fix the e2e test to use regex to check the version
Currently, it compares the exact string. And it makes test fail when releasing the new version.
1 parent 485db29 commit 0f6b757

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/src/e2e/basic.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ describe("solo - 1 node", function() {
3030
});
3131

3232
it("getNodeVersion", async function() {
33-
expect(await node.sdk.rpc.node.getNodeVersion()).to.equal("1.1.1");
33+
expect(await node.sdk.rpc.node.getNodeVersion()).to.match(
34+
/^[0-9]+\.[0-9]+\.[0-9]+$/
35+
);
3436
});
3537

3638
it("getCommitHash", async function() {

0 commit comments

Comments
 (0)