make check

Signed-off-by: root <root@localhost.localdomain>
This commit is contained in:
root 2022-09-13 21:27:30 +08:00
parent f4e1f422fa
commit 8db22b3046
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ func TestPatitionChain(t *testing.T) {
},
}
for _, tc := range testCases {
chains, err := tc.cmd.AdditionalChain("test")
chains, err := tc.cmd.AdditionalChain("test", "3c5528e1-4c32-4f80-983c-913ad7e860e2")
if err != nil {
t.Errorf("failed to partition chain: %v", err)
}

View File

@ -190,7 +190,7 @@ func (s *Server) applyTC(attack *core.NetworkCommand, ipset string, uid string)
}
tcs = append(tcs, newTC)
if _, err := s.svr.SetTcs(context.Background(), &pb.TcsRequest{Tcs: tcs, EnterNS: false}); err != nil {
return perrors.WithStack(err)
}