test: cover group icon validation on all platforms

This commit is contained in:
张卓澎 committed 2026-07-17 12:15:22 +08:00
1 parent 8a7e1c7be7
commit 82e98d98a3
1 file changed
+2 -2
+2 -2
View File
@@ -43,7 +43,7 @@ func runChatCoverageDirect(t *testing.T, path []string, flags map[string]string)
return command.RunE(command, nil)
}
func TestChatGroupUpdateIconAcceptsUploadedMediaIDPrefixes(t *testing.T) {
func TestCrossPlatformCoverageChatGroupUpdateIconAcceptsUploadedMediaIDPrefixes(t *testing.T) {
previousDeps, previousArgs := deps, os.Args
os.Args = []string{"dws", "chat"}
t.Cleanup(func() { deps, os.Args = previousDeps, previousArgs })
@@ -69,7 +69,7 @@ func TestChatGroupUpdateIconAcceptsUploadedMediaIDPrefixes(t *testing.T) {
}
}
func TestChatGroupUpdateIconRejectsBlankMediaID(t *testing.T) {
func TestCrossPlatformCoverageChatGroupUpdateIconRejectsBlankMediaID(t *testing.T) {
previousDeps, previousArgs := deps, os.Args
os.Args = []string{"dws", "chat"}
t.Cleanup(func() { deps, os.Args = previousDeps, previousArgs })