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)) } }