add with http code
This commit is contained in:
@@ -22,7 +22,7 @@ func TestStoreOneData(t *testing.T) {
|
||||
}
|
||||
|
||||
dma := DataMongoAccessor{}
|
||||
id, _ := dma.StoreOne(&d)
|
||||
id, _, _ := dma.StoreOne(&d)
|
||||
|
||||
assert.NotEmpty(t, id)
|
||||
}
|
||||
@@ -40,6 +40,6 @@ func TestLoadOneDate(t *testing.T) {
|
||||
}
|
||||
|
||||
dma := DataMongoAccessor{}
|
||||
new_d, _ := dma.StoreOne(&d)
|
||||
new_d, _, _ := dma.StoreOne(&d)
|
||||
assert.Equal(t, d, new_d)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user