@@ -111,58 +111,58 @@ func TestStringMatch(t *testing.T) {
111
111
112
112
testUrl , _ := url .Parse ("https://test1.com" )
113
113
injector := mgr .GetInjectorByUrl (testUrl , "POST" )
114
- g .Expect (injector .(* abortWithDelayInjector ).Abort ).Should (gomega .BeTrue ())
114
+ g .Expect (injector .(* abortWithDelayInjector ).Abort () ).Should (gomega .BeTrue ())
115
115
116
116
testUrl , _ = url .Parse ("https://test1.com" )
117
117
injector = mgr .GetInjectorByUrl (testUrl , "GET" )
118
- g .Expect (injector .(* abortWithDelayInjector ).Abort ).Should (gomega .BeFalse ())
118
+ g .Expect (injector .(* abortWithDelayInjector ).Abort () ).Should (gomega .BeFalse ())
119
119
120
120
testUrl , _ = url .Parse ("https://test1.com/a" )
121
121
injector = mgr .GetInjectorByUrl (testUrl , "POST" )
122
- g .Expect (injector .(* abortWithDelayInjector ).Abort ).Should (gomega .BeTrue ())
122
+ g .Expect (injector .(* abortWithDelayInjector ).Abort () ).Should (gomega .BeTrue ())
123
123
124
124
testUrl , _ = url .Parse ("https://test2.com/a/b" )
125
125
injector = mgr .GetInjectorByUrl (testUrl , "POST" )
126
- g .Expect (injector .(* abortWithDelayInjector ).Abort ).Should (gomega .BeTrue ())
126
+ g .Expect (injector .(* abortWithDelayInjector ).Abort () ).Should (gomega .BeTrue ())
127
127
128
128
testUrl , _ = url .Parse ("https://test2.com" )
129
129
injector = mgr .GetInjectorByUrl (testUrl , "POST" )
130
- g .Expect (injector .(* abortWithDelayInjector ).Abort ).Should (gomega .BeFalse ())
130
+ g .Expect (injector .(* abortWithDelayInjector ).Abort () ).Should (gomega .BeFalse ())
131
131
132
132
testUrl , _ = url .Parse ("https://test2.com/a/c" )
133
133
injector = mgr .GetInjectorByUrl (testUrl , "POST" )
134
- g .Expect (injector .(* abortWithDelayInjector ).Abort ).Should (gomega .BeFalse ())
134
+ g .Expect (injector .(* abortWithDelayInjector ).Abort () ).Should (gomega .BeFalse ())
135
135
136
136
testUrl , _ = url .Parse ("https://test3x.com/a/c" )
137
137
injector = mgr .GetInjectorByUrl (testUrl , "POST" )
138
- g .Expect (injector .(* abortWithDelayInjector ).Abort ).Should (gomega .BeTrue ())
138
+ g .Expect (injector .(* abortWithDelayInjector ).Abort () ).Should (gomega .BeTrue ())
139
139
140
140
testUrl , _ = url .Parse ("https://test3.com" )
141
141
injector = mgr .GetInjectorByUrl (testUrl , "POST" )
142
- g .Expect (injector .(* abortWithDelayInjector ).Abort ).Should (gomega .BeFalse ())
142
+ g .Expect (injector .(* abortWithDelayInjector ).Abort () ).Should (gomega .BeFalse ())
143
143
144
144
testUrl , _ = url .Parse ("https://test4.com/abc/d" )
145
145
injector = mgr .GetInjectorByUrl (testUrl , "POST" )
146
- g .Expect (injector .(* abortWithDelayInjector ).Abort ).Should (gomega .BeTrue ())
146
+ g .Expect (injector .(* abortWithDelayInjector ).Abort () ).Should (gomega .BeTrue ())
147
147
148
148
protoFault .Option = ctrlmeshproto .FaultInjection_DELETE
149
149
_ , err = mgr .Sync (protoFault )
150
150
151
151
testUrl , _ = url .Parse ("https://test1.com/a" )
152
152
injector = mgr .GetInjectorByUrl (testUrl , "POST" )
153
- g .Expect (injector .(* abortWithDelayInjector ).Abort ).Should (gomega .BeFalse ())
153
+ g .Expect (injector .(* abortWithDelayInjector ).Abort () ).Should (gomega .BeFalse ())
154
154
155
155
testUrl , _ = url .Parse ("https://test2.com/a/b" )
156
156
injector = mgr .GetInjectorByUrl (testUrl , "POST" )
157
- g .Expect (injector .(* abortWithDelayInjector ).Abort ).Should (gomega .BeFalse ())
157
+ g .Expect (injector .(* abortWithDelayInjector ).Abort () ).Should (gomega .BeFalse ())
158
158
159
159
testUrl , _ = url .Parse ("https://test3x.com/a/c" )
160
160
injector = mgr .GetInjectorByUrl (testUrl , "POST" )
161
- g .Expect (injector .(* abortWithDelayInjector ).Abort ).Should (gomega .BeFalse ())
161
+ g .Expect (injector .(* abortWithDelayInjector ).Abort () ).Should (gomega .BeFalse ())
162
162
163
163
testUrl , _ = url .Parse ("https://test4.com/abc/d" )
164
164
injector = mgr .GetInjectorByUrl (testUrl , "POST" )
165
- g .Expect (injector .(* abortWithDelayInjector ).Abort ).Should (gomega .BeFalse ())
165
+ g .Expect (injector .(* abortWithDelayInjector ).Abort () ).Should (gomega .BeFalse ())
166
166
}
167
167
168
168
func TestIsEffectiveTimeRange (t * testing.T ) {
0 commit comments