private accessor
This commit is contained in:
@@ -21,7 +21,7 @@ func TestStoreOneData(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
dma := DataMongoAccessor{}
|
||||
dma := New()
|
||||
id, _, _ := dma.StoreOne(&d)
|
||||
|
||||
assert.NotEmpty(t, id)
|
||||
@@ -39,7 +39,7 @@ func TestLoadOneDate(t *testing.T) {
|
||||
},
|
||||
}
|
||||
|
||||
dma := DataMongoAccessor{}
|
||||
dma := New()
|
||||
new_d, _, _ := dma.StoreOne(&d)
|
||||
assert.Equal(t, d, new_d)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user