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 tests and code samples checker #1020

Merged
merged 1 commit into from Aug 16, 2021

Conversation

srknzl
Copy link
Member

@srknzl srknzl commented Aug 16, 2021

fixes test failures due to jet being disabled.

@@ -20,6 +20,7 @@ const DEV_CLUSTER_CONFIG = `
xsi:schemaLocation="http://www.hazelcast.com/schema/config
http://www.hazelcast.com/schema/config/hazelcast-config-4.0.xsd">
<cluster-name>dev</cluster-name>
<jet enabled="true"></jet>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some code samples use sql, so we need to enable it in the cluster that code samples are run against

@@ -59,6 +61,7 @@ describe('Data type test', function () {
let mapName;
const clientVersionNewerThanFive = TestUtil.isClientVersionAtLeast('5.0');
const serverVersionNewerThanFive = TestUtil.isServerVersionAtLeast(client, '5.0');
const JET_ENABLED_CONFIG = fs.readFileSync(path.join(__dirname, 'jet_enabled.xml'), 'utf8');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all the tests that require sql need jet as enabled

Comment on lines +349 to +350
resultSpy.callCount.should.be.greaterThanOrEqual(4);
serviceSpy.callCount.should.be.greaterThanOrEqual(4);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after a change fetch may not get rows as full in non-last pages. see the issue for details: hazelcast/hazelcast#19313

Comment on lines +381 to +382
resultSpy.callCount.should.be.greaterThanOrEqual(4);
serviceSpy.callCount.should.be.greaterThanOrEqual(4);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above comment

@srknzl srknzl changed the title Fix tests and code samples Fix tests and code samples checker Aug 16, 2021
@srknzl srknzl merged commit 42d77b0 into hazelcast:master Aug 16, 2021
harunalpak pushed a commit to harunalpak/hazelcast-nodejs-client that referenced this pull request Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants