Migrate Plugin.SaveOrUpdate to sync by default (#11592)
Этот коммит содержится в:
коммит произвёл
Jesús Espino
родитель
e209a7acb4
Коммит
ce61681c92
@@ -66,8 +66,8 @@ func TestPluginKeyValueStore(t *testing.T) {
|
||||
ExpireAt: 0,
|
||||
}
|
||||
|
||||
result := <-th.App.Srv.Store.Plugin().SaveOrUpdate(kv)
|
||||
assert.Nil(t, result.Err)
|
||||
_, err = th.App.Srv.Store.Plugin().SaveOrUpdate(kv)
|
||||
assert.Nil(t, err)
|
||||
|
||||
// Test fetch by keyname (this key does not exist but hashed key will be used for lookup)
|
||||
ret, err = th.App.GetPluginKey(pluginId, "key2")
|
||||
|
||||
Ссылка в новой задаче
Block a user