Refine "only" in Mux config

This commit is contained in:
RPRX authored and GitHub committed 2023-04-10 10:15:16 +08:00
1 parent 05d24d6827
commit 29d7865d78
4 files changed
+14 -7

No files matched your search

+1 -1
View File
@@ -357,7 +357,7 @@ func TestMuxConfig_Build(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
m := &MuxConfig{}
common.Must(json.Unmarshal([]byte(tt.fields), m))
if got := m.Build(); !reflect.DeepEqual(got, tt.want) {
if got, _ := m.Build(); !reflect.DeepEqual(got, tt.want) {
t.Errorf("MuxConfig.Build() = %v, want %v", got, tt.want)
}
})