1
0
Fork 0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-12 14:28:39 +00:00

Refine "only" in Mux config

This commit is contained in:
RPRX 2023-04-10 10:15:16 +08:00 committed by GitHub
parent 05d24d6827
commit 29d7865d78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 7 deletions
infra/conf

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)
}
})