mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
fix tests
This commit is contained in:
parent
e9217168e4
commit
4b9d2c0692
|
@ -287,6 +287,7 @@ describe('OnionPathsErrors', () => {
|
|||
expect(incrementBadSnodeCountOrDropSpy.callCount).to.eq(1);
|
||||
expect(incrementBadSnodeCountOrDropSpy.firstCall.args[0]).to.deep.eq({
|
||||
snodeEd25519: targetNode,
|
||||
guardNodeEd25519: guardSnode1.pubkey_ed25519,
|
||||
associatedWith,
|
||||
});
|
||||
});
|
||||
|
@ -331,6 +332,7 @@ describe('OnionPathsErrors', () => {
|
|||
expect(incrementBadSnodeCountOrDropSpy.callCount).to.eq(1);
|
||||
expect(incrementBadSnodeCountOrDropSpy.firstCall.args[0]).to.deep.eq({
|
||||
snodeEd25519: targetNode,
|
||||
guardNodeEd25519: guardSnode1.pubkey_ed25519,
|
||||
associatedWith,
|
||||
});
|
||||
});
|
||||
|
@ -368,6 +370,7 @@ describe('OnionPathsErrors', () => {
|
|||
expect(incrementBadSnodeCountOrDropSpy.callCount).to.eq(1);
|
||||
expect(incrementBadSnodeCountOrDropSpy.firstCall.args[0]).to.deep.eq({
|
||||
snodeEd25519: targetNode,
|
||||
guardNodeEd25519: guardSnode1.pubkey_ed25519,
|
||||
associatedWith,
|
||||
});
|
||||
});
|
||||
|
@ -407,6 +410,7 @@ describe('OnionPathsErrors', () => {
|
|||
expect(incrementBadSnodeCountOrDropSpy.callCount).to.eq(1);
|
||||
expect(incrementBadSnodeCountOrDropSpy.firstCall.args[0]).to.deep.eq({
|
||||
snodeEd25519: targetNode,
|
||||
guardNodeEd25519: guardSnode1.pubkey_ed25519,
|
||||
associatedWith,
|
||||
});
|
||||
});
|
||||
|
@ -483,6 +487,7 @@ describe('OnionPathsErrors', () => {
|
|||
expect(incrementBadSnodeCountOrDropSpy.callCount).to.eq(1);
|
||||
expect(incrementBadSnodeCountOrDropSpy.firstCall.args[0]).to.deep.eq({
|
||||
snodeEd25519: failingSnode.pubkey_ed25519,
|
||||
guardNodeEd25519: guardSnode1.pubkey_ed25519,
|
||||
associatedWith,
|
||||
});
|
||||
});
|
||||
|
@ -518,6 +523,7 @@ describe('OnionPathsErrors', () => {
|
|||
expect(incrementBadSnodeCountOrDropSpy.callCount).to.eq(1);
|
||||
expect(incrementBadSnodeCountOrDropSpy.firstCall.args[0]).to.deep.eq({
|
||||
snodeEd25519: failingSnode.pubkey_ed25519,
|
||||
guardNodeEd25519: guardSnode1.pubkey_ed25519,
|
||||
associatedWith,
|
||||
});
|
||||
});
|
||||
|
@ -560,14 +566,17 @@ describe('OnionPathsErrors', () => {
|
|||
expect(incrementBadSnodeCountOrDropSpy.callCount).to.eq(3);
|
||||
expect(incrementBadSnodeCountOrDropSpy.args[0][0]).to.deep.eq({
|
||||
snodeEd25519: failingSnode.pubkey_ed25519,
|
||||
guardNodeEd25519: guardSnode1.pubkey_ed25519,
|
||||
associatedWith,
|
||||
});
|
||||
expect(incrementBadSnodeCountOrDropSpy.args[1][0]).to.deep.eq({
|
||||
snodeEd25519: failingSnode.pubkey_ed25519,
|
||||
guardNodeEd25519: guardSnode1.pubkey_ed25519,
|
||||
associatedWith,
|
||||
});
|
||||
expect(incrementBadSnodeCountOrDropSpy.args[2][0]).to.deep.eq({
|
||||
snodeEd25519: failingSnode.pubkey_ed25519,
|
||||
guardNodeEd25519: guardSnode1.pubkey_ed25519,
|
||||
associatedWith,
|
||||
});
|
||||
expect(incrementBadPathCountOrDropSpy.callCount).to.eq(0);
|
||||
|
@ -610,6 +619,7 @@ describe('OnionPathsErrors', () => {
|
|||
for (let index = 0; index < 6; index++) {
|
||||
expect(incrementBadSnodeCountOrDropSpy.args[index][0]).to.deep.eq({
|
||||
snodeEd25519: oldOnionPaths[0][(index % 2) + 1].pubkey_ed25519,
|
||||
guardNodeEd25519: guardNode.pubkey_ed25519,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue