From 4a678c0553e1993dd8e36c1d37b1743631d3a4ec Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Thu, 12 Dec 2024 15:50:37 -0700 Subject: [PATCH] fix ovs tests --- tests/end_to_end/http_server/open_value_sharing/dfx.json | 2 +- .../http_server/open_value_sharing/test/pretest.ts | 9 +++------ .../http_server/open_value_sharing/test/tests.ts | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/end_to_end/http_server/open_value_sharing/dfx.json b/tests/end_to_end/http_server/open_value_sharing/dfx.json index 57aa057892..ba49d3a299 100644 --- a/tests/end_to_end/http_server/open_value_sharing/dfx.json +++ b/tests/end_to_end/http_server/open_value_sharing/dfx.json @@ -17,7 +17,7 @@ "weights": { "debug": 2, "has-symbols": 0, - "safer-buffer": 2, + "safe-buffer": 2, "hasown": 3 } } diff --git a/tests/end_to_end/http_server/open_value_sharing/test/pretest.ts b/tests/end_to_end/http_server/open_value_sharing/test/pretest.ts index 1218951814..f0e73b2e60 100644 --- a/tests/end_to_end/http_server/open_value_sharing/test/pretest.ts +++ b/tests/end_to_end/http_server/open_value_sharing/test/pretest.ts @@ -20,12 +20,9 @@ function pretest(): void { } ); - execSync( - `cp ../../../../.openvaluesharing.json node_modules/safer-buffer`, - { - stdio: 'inherit' - } - ); + execSync(`cp ../../../../.openvaluesharing.json node_modules/safe-buffer`, { + stdio: 'inherit' + }); execSync(`cp ../../../../.openvaluesharing.json node_modules/hasown`, { stdio: 'inherit' diff --git a/tests/end_to_end/http_server/open_value_sharing/test/tests.ts b/tests/end_to_end/http_server/open_value_sharing/test/tests.ts index 4c3c3b8fbd..73db404050 100644 --- a/tests/end_to_end/http_server/open_value_sharing/test/tests.ts +++ b/tests/end_to_end/http_server/open_value_sharing/test/tests.ts @@ -316,7 +316,7 @@ function periodicBatchIsCorrect(periodicBatch: PeriodicBatch): void { ); expect(payment4).toStrictEqual( expect.objectContaining({ - name: 'safer-buffer', + name: 'safe-buffer', payment_mechanism: 'wallet_receive', amount: payment4CalculatedAmount, success: { Ok: null }