From 48db22e554f3ba7f97db634f277a3007e8df8ebd Mon Sep 17 00:00:00 2001 From: Matt Curtis Date: Fri, 24 May 2024 08:25:04 +0100 Subject: [PATCH] fix test --- integration/obscurogateway/tengateway_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/integration/obscurogateway/tengateway_test.go b/integration/obscurogateway/tengateway_test.go index a8652e34e7..72f25c9b56 100644 --- a/integration/obscurogateway/tengateway_test.go +++ b/integration/obscurogateway/tengateway_test.go @@ -738,9 +738,10 @@ func testGetStorageAtForReturningUserID(t *testing.T, httpURL, wsURL string, w w } // make a request to GetStorageAt with wrong parameters to get userID, but correct userID - respBody3 := makeHTTPEthJSONReq(httpURL, tenrpc.GetStorageAt, user.tgClient.UserID(), []interface{}{"0x0000000000000000000000000000000000000001", "0", nil}) - if !strings.Contains(string(respBody3), "illegal access") { - t.Error("eth_getStorageAt did not respond with error: illegal access") + respBody3 := makeHTTPEthJSONReq(httpURL, tenrpc.GetStorageAt, user.tgClient.UserID(), []interface{}{"0x0000000000000000000000000000000000000007", "0", nil}) + expectedErr := "not supported" + if !strings.Contains(string(respBody3), expectedErr) { + t.Errorf("eth_getStorageAt did not respond with error: %s, it was: %s", expectedErr, string(respBody3)) } }