add with http code
This commit is contained in:
@@ -22,7 +22,7 @@ func TestStoreOneDatacenter(t *testing.T) {
|
||||
}
|
||||
|
||||
dcma := DatacenterMongoAccessor{}
|
||||
id, _ := dcma.StoreOne(&dc)
|
||||
id, _, _ := dcma.StoreOne(&dc)
|
||||
|
||||
assert.NotEmpty(t, id)
|
||||
}
|
||||
@@ -40,7 +40,7 @@ func TestLoadOneDatacenter(t *testing.T) {
|
||||
}
|
||||
|
||||
dcma := DatacenterMongoAccessor{}
|
||||
new_dc, _ := dcma.StoreOne(&dc)
|
||||
new_dc, _, _ := dcma.StoreOne(&dc)
|
||||
|
||||
assert.Equal(t, dc, new_dc)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user