MM-11728: Avoid Archived channels editions throught Patch (#9335)
Этот коммит содержится в:
коммит произвёл
Carlos Tadeu Panato Junior
родитель
9f46512759
Коммит
72560311a2
@@ -220,6 +220,12 @@ func testChannelStoreUpdate(t *testing.T, ss store.Store) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
o1.DeleteAt = 100
|
||||
if err := (<-ss.Channel().Update(&o1)).Err; err == nil {
|
||||
t.Fatal("Update should have failed because channel is archived")
|
||||
}
|
||||
|
||||
o1.DeleteAt = 0
|
||||
o1.Id = "missing"
|
||||
if err := (<-ss.Channel().Update(&o1)).Err; err == nil {
|
||||
t.Fatal("Update should have failed because of missing key")
|
||||
|
||||
Ссылка в новой задаче
Block a user