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 30, 2022
1 parent a56457d commit 77aaa19
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 @@ -402,7 +402,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(
Expand Down Expand Up @@ -432,7 +431,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(
Expand Down Expand Up @@ -462,7 +460,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(
Expand Down Expand Up @@ -494,7 +491,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(
Expand Down Expand Up @@ -525,7 +521,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(
Expand Down Expand Up @@ -556,7 +551,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(
Expand Down

0 comments on commit 77aaa19

Please sign in to comment.