diff --git a/datasource/http/data_acc_test.go b/datasource/http/data_acc_test.go
index 57d45bc7922..25754488b84 100644
--- a/datasource/http/data_acc_test.go
+++ b/datasource/http/data_acc_test.go
@@ -57,7 +57,7 @@ func TestHttpDataSource(t *testing.T) {
 			Path:  testDatasourceInvalidMethod,
 			Error: true,
 			Outputs: map[string]string{
-				"error": "the `method` must be one of [HEAD GET POST PUT DELETE OPTIONS PATCH]",
+				"error": "the `method` must be one of \\[HEAD GET POST PUT DELETE OPTIONS PATCH\\]",
 			},
 		},
 		{