@@ -71,7 +71,7 @@ func (d *mdbTestClient) applyOps(entries []interface{}) error {
71
71
72
72
func TestIsOpForCloning (t * testing.T ) {
73
73
oRestore := newOplogRestoreTest (& mdbTestClient {})
74
- oRestore .SetCloneNS (context .Background (), snapshot.CloneNS {FromNS : "mydb.cloningFrom" , ToNS : "mydb.cloningTo" })
74
+ _ = oRestore .SetCloneNS (context .Background (), snapshot.CloneNS {FromNS : "mydb.cloningFrom" , ToNS : "mydb.cloningTo" })
75
75
76
76
testCases := []struct {
77
77
desc string
@@ -136,7 +136,6 @@ func TestIsOpForCloning(t *testing.T) {
136
136
if res != tC .isForCloning {
137
137
t .Errorf ("%s: for entry: %+v isOpForCloning is: %t, but it should be opposite" ,
138
138
tC .desc , tC .entry , tC .isForCloning )
139
-
140
139
}
141
140
})
142
141
}
@@ -160,7 +159,7 @@ func TestApply(t *testing.T) {
160
159
resCmd : []string {"drop" , "create" , "drop" , "drop" , "create" },
161
160
resColl : []string {"c1" , "c1" , "c1" , "c2" , "c2" },
162
161
},
163
- //todo: add more cases
162
+ // todo: add more cases
164
163
}
165
164
for _ , tC := range testCases {
166
165
t .Run (tC .desc , func (t * testing.T ) {
@@ -206,7 +205,7 @@ func TestApply(t *testing.T) {
206
205
})
207
206
208
207
t .Run ("selective restore" , func (t * testing.T ) {
209
- //todo:
208
+ // todo: add tests
210
209
})
211
210
212
211
t .Run ("index restore" , func (t * testing.T ) {
@@ -224,7 +223,7 @@ func TestApply(t *testing.T) {
224
223
coll : "c1" ,
225
224
idxs : bson.D {{"fieldX" , - 1 }, {"fieldZ" , - 1 }},
226
225
},
227
- //todo: add more cases
226
+ // todo: add more cases
228
227
}
229
228
for _ , tC := range testCases {
230
229
t .Run (tC .desc , func (t * testing.T ) {
@@ -269,7 +268,7 @@ func TestApply(t *testing.T) {
269
268
resNS : []string {"mydb.c1_clone" , "mydb.c1_clone" , "mydb.c1_clone" },
270
269
},
271
270
{
272
- desc : "ignore namespaces not relevent for cloning" ,
271
+ desc : "ignore namespaces not relevant for cloning" ,
273
272
oplogFile : "ops_i_u_d" ,
274
273
nsFrom : "mydb.xyz" ,
275
274
nsTo : "mydb.xyz_clone" ,
@@ -290,7 +289,7 @@ func TestApply(t *testing.T) {
290
289
t .Run (tC .desc , func (t * testing.T ) {
291
290
db := newMDBTestClient ()
292
291
oRestore := newOplogRestoreTest (db )
293
- oRestore .SetCloneNS (context .Background (), snapshot.CloneNS {FromNS : tC .nsFrom , ToNS : tC .nsTo })
292
+ _ = oRestore .SetCloneNS (context .Background (), snapshot.CloneNS {FromNS : tC .nsFrom , ToNS : tC .nsTo })
294
293
295
294
fr := useTestFile (t , tC .oplogFile )
296
295
0 commit comments