@@ -63,6 +63,9 @@ func TestGetAlldocChannels(t *testing.T) {
63
63
}
64
64
65
65
func TestGetDocDryRuns (t * testing.T ) {
66
+ if ! base .UnitTestUrlIsWalrus () {
67
+ t .Skip ("This test asserts on an error message that will not be the same without walrus" )
68
+ }
66
69
rt := NewRestTester (t , & RestTesterConfig {PersistentConfig : true })
67
70
defer rt .Close ()
68
71
bucket := rt .Bucket ().GetName ()
@@ -103,12 +106,12 @@ func TestGetDocDryRuns(t *testing.T) {
103
106
assert .NoError (t , err )
104
107
assert .Equal (t , respMap .Exception , "403 user num too low" )
105
108
106
- response = rt .SendDiagnosticRequest ("GET" , fmt .Sprintf ("/{{.keyspace}}/_sync?doc_id=doc" ), `{"user":{"num":150}, "channel":{num:88} }` )
109
+ response = rt .SendDiagnosticRequest ("GET" , fmt .Sprintf ("/{{.keyspace}}/_sync?doc_id=doc" ), `{"user":{"num":150}, "channel":"abc" }` )
107
110
RequireStatus (t , response , http .StatusOK )
108
-
109
- err = json .Unmarshal (response .BodyBytes (), & respMap )
111
+ var newrespMap SyncFnDryRun
112
+ err = json .Unmarshal (response .BodyBytes (), & newrespMap )
110
113
assert .NoError (t , err )
111
- assert .Equal (t , respMap .Exception , "TypeError: Cannot access member '0' of undefined" )
114
+ assert .Equal (t , newrespMap .Exception , "TypeError: Cannot access member '0' of undefined" )
112
115
113
116
response = rt .SendDiagnosticRequest ("GET" , fmt .Sprintf ("/{{.keyspace}}/_sync?doc_id=doc" ), `{"user":{"num":120, "name":["user2"]}, "channel":"channel2"}` )
114
117
RequireStatus (t , response , http .StatusOK )
0 commit comments