Skip to content

Commit

Permalink
test: fixed nodeGraph get all buckets test
Browse files Browse the repository at this point in the history
fix into 7cc74d0
  • Loading branch information
tegefaulkes committed Mar 28, 2022
1 parent ccb5538 commit 8543dd3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/nodes/NodeGraph.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,6 @@ describe(`${NodeGraph.name} test`, () => {
expect(bucketIndex > bucketIndex_).toBe(true);
bucketIndex_ = bucketIndex;
expect(bucket.length > 0).toBe(true);
expect(bucket.length <= nodeGraph.nodeBucketLimit).toBe(true);
for (const [nodeId, nodeData] of bucket) {
expect(nodeId.byteLength).toBe(32);
expect(nodesUtils.bucketIndex(keyManager.getNodeId(), nodeId)).toBe(bucketIndex);
Expand Down Expand Up @@ -448,7 +447,6 @@ describe(`${NodeGraph.name} test`, () => {
expect(bucketIndex < bucketIndex_).toBe(true);
bucketIndex_ = bucketIndex;
expect(bucket.length > 0).toBe(true);
expect(bucket.length <= nodeGraph.nodeBucketLimit).toBe(true);
for (const [nodeId, nodeData] of bucket) {
expect(nodeId.byteLength).toBe(32);
expect(nodesUtils.bucketIndex(keyManager.getNodeId(), nodeId)).toBe(bucketIndex);
Expand Down Expand Up @@ -476,7 +474,6 @@ describe(`${NodeGraph.name} test`, () => {
expect(bucketIndex > bucketIndex_).toBe(true);
bucketIndex_ = bucketIndex;
expect(bucket.length > 0).toBe(true);
expect(bucket.length <= nodeGraph.nodeBucketLimit).toBe(true);
for (const [nodeId, nodeData] of bucket) {
expect(nodeId.byteLength).toBe(32);
expect(nodesUtils.bucketIndex(keyManager.getNodeId(), nodeId)).toBe(bucketIndex);
Expand All @@ -503,7 +500,6 @@ describe(`${NodeGraph.name} test`, () => {
expect(bucketIndex < bucketIndex_).toBe(true);
bucketIndex_ = bucketIndex;
expect(bucket.length > 0).toBe(true);
expect(bucket.length <= nodeGraph.nodeBucketLimit).toBe(true);
for (const [nodeId, nodeData] of bucket) {
expect(nodeId.byteLength).toBe(32);
expect(nodesUtils.bucketIndex(keyManager.getNodeId(), nodeId)).toBe(bucketIndex);
Expand All @@ -529,7 +525,6 @@ describe(`${NodeGraph.name} test`, () => {
expect(bucketIndex > bucketIndex_).toBe(true);
bucketIndex_ = bucketIndex;
expect(bucket.length > 0).toBe(true);
expect(bucket.length <= nodeGraph.nodeBucketLimit).toBe(true);
for (const [nodeId, nodeData] of bucket) {
expect(nodeId.byteLength).toBe(32);
expect(nodesUtils.bucketIndex(keyManager.getNodeId(), nodeId)).toBe(bucketIndex);
Expand All @@ -553,7 +548,6 @@ describe(`${NodeGraph.name} test`, () => {
expect(bucketIndex < bucketIndex_).toBe(true);
bucketIndex_ = bucketIndex;
expect(bucket.length > 0).toBe(true);
expect(bucket.length <= nodeGraph.nodeBucketLimit).toBe(true);
for (const [nodeId, nodeData] of bucket) {
expect(nodeId.byteLength).toBe(32);
expect(nodesUtils.bucketIndex(keyManager.getNodeId(), nodeId)).toBe(bucketIndex);
Expand Down

0 comments on commit 8543dd3

Please sign in to comment.