1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-27 04:25:44 -05:00

Fix tests

This commit is contained in:
Shelikhoo
2020-06-08 16:16:50 +08:00
parent 09b81b78c3
commit 00103d1f73
3 changed files with 8 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ package scenarios
import (
"context"
"fmt"
"github.com/google/go-cmp/cmp/cmpopts"
"io"
"strings"
"testing"
@@ -471,7 +472,7 @@ func TestCommanderStats(t *testing.T) {
if r := cmp.Diff(sresp.Stat, &statscmd.Stat{
Name: name,
Value: 10240 * 1024,
}); r != "" {
}, cmpopts.IgnoreUnexported(statscmd.Stat{})); r != "" {
t.Error(r)
}
@@ -482,7 +483,7 @@ func TestCommanderStats(t *testing.T) {
if r := cmp.Diff(sresp.Stat, &statscmd.Stat{
Name: name,
Value: 0,
}); r != "" {
}, cmpopts.IgnoreUnexported(statscmd.Stat{})); r != "" {
t.Error(r)
}