@@ -136,14 +136,14 @@ func TestIntegration_CreateTTL(t *testing.T) {
136
136
const testPath = "/ttl_znode_tests"
137
137
// create sub node to create per test in avoiding using the root path.
138
138
_ , err = zk .Create (testPath , nil /* data */ , FlagPersistent , WorldACL (PermAll ))
139
- requireNoError (t , err )
139
+ requireNoErrorf (t , err )
140
140
141
141
for idx , tt := range tests {
142
142
t .Run (tt .name , func (t * testing.T ) {
143
143
path := filepath .Join (testPath , fmt .Sprint (idx ))
144
144
_ , err := zk .CreateTTL (path , []byte {12 }, tt .createFlags , WorldACL (PermAll ), tt .giveDuration )
145
145
if tt .wantErr == "" {
146
- requireNoError (t , err , fmt .Sprintf ("error not expected: path; %q; flags %v" , path , tt .createFlags ))
146
+ requireNoErrorf (t , err , fmt .Sprintf ("error not expected: path; %q; flags %v" , path , tt .createFlags ))
147
147
return
148
148
}
149
149
@@ -223,14 +223,14 @@ func TestIntegration_CreateContainer(t *testing.T) {
223
223
const testPath = "/container_test_znode"
224
224
// create sub node to create per test in avoiding using the root path.
225
225
_ , err = zk .Create (testPath , nil /* data */ , FlagPersistent , WorldACL (PermAll ))
226
- requireNoError (t , err )
226
+ requireNoErrorf (t , err )
227
227
228
228
for idx , tt := range tests {
229
229
t .Run (tt .name , func (t * testing.T ) {
230
230
path := filepath .Join (testPath , fmt .Sprint (idx ))
231
231
_ , err := zk .CreateContainer (path , []byte {12 }, tt .createFlags , WorldACL (PermAll ))
232
232
if tt .wantErr == "" {
233
- requireNoError (t , err , fmt .Sprintf ("error not expected: path; %q; flags %v" , path , tt .createFlags ))
233
+ requireNoErrorf (t , err , fmt .Sprintf ("error not expected: path; %q; flags %v" , path , tt .createFlags ))
234
234
return
235
235
}
236
236
0 commit comments