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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user