mirror of
https://github.com/EchoVault/SugarDB.git
synced 2026-04-22 23:47:09 +08:00
Iss 100: Implement interfaces and constants for generic API methods (#127)
SETOptions struct added. Adjusted Set method calls for using new struct. - @osteensco
This commit is contained in:
@@ -776,7 +776,7 @@ func Test_AdminCommands(t *testing.T) {
|
||||
|
||||
// Trigger some write commands
|
||||
for key, value := range test.values {
|
||||
if _, _, err = mockServer.Set(key, value, echovault.SetOptions{}); err != nil {
|
||||
if _, _, err = mockServer.Set(key, value, echovault.SETOptions{}); err != nil {
|
||||
t.Error(err)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -2662,7 +2662,7 @@ func Test_Generic(t *testing.T) {
|
||||
_, _, _ = mockServer.Set(
|
||||
fmt.Sprintf("key%d", k),
|
||||
fmt.Sprintf("value%d", k),
|
||||
echovault.SetOptions{},
|
||||
echovault.SETOptions{},
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -2768,7 +2768,7 @@ func Test_Generic(t *testing.T) {
|
||||
_, _, err := mockServer.Set(
|
||||
fmt.Sprintf("RandomKey%d", i),
|
||||
fmt.Sprintf("Value%d", i),
|
||||
echovault.SetOptions{},
|
||||
echovault.SETOptions{},
|
||||
)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
|
||||
Reference in New Issue
Block a user