mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-07-02 17:58:46 +00:00
GitHub Action CI: Add Go source file format check (#6090)
https://github.com/XTLS/Xray-core/pull/6057#issuecomment-4364819830 And https://github.com/XTLS/Xray-core/pull/6149#issuecomment-4546876261
This commit is contained in:
committed by
GitHub
parent
ca4b156b57
commit
d43a808ea5
@@ -292,7 +292,8 @@ func TestCommanderListHandlers(t *testing.T) {
|
||||
protocmp.Transform(),
|
||||
cmpopts.SortSlices(func(a, b *core.InboundHandlerConfig) bool {
|
||||
return a.Tag < b.Tag
|
||||
})); diff != "" {
|
||||
}),
|
||||
); diff != "" {
|
||||
t.Fatalf("inbound response doesn't match config (-want +got):\n%s", diff)
|
||||
}
|
||||
|
||||
@@ -308,7 +309,8 @@ func TestCommanderListHandlers(t *testing.T) {
|
||||
protocmp.Transform(),
|
||||
cmpopts.SortSlices(func(a, b *core.InboundHandlerConfig) bool {
|
||||
return a.Tag < b.Tag
|
||||
})); diff != "" {
|
||||
}),
|
||||
); diff != "" {
|
||||
t.Fatalf("outbound response doesn't match config (-want +got):\n%s", diff)
|
||||
}
|
||||
}
|
||||
@@ -467,7 +469,8 @@ func TestCommanderAddRemoveUser(t *testing.T) {
|
||||
Id: u2.String(),
|
||||
}),
|
||||
},
|
||||
}),
|
||||
},
|
||||
),
|
||||
})
|
||||
common.Must(err)
|
||||
if resp == nil {
|
||||
|
||||
Reference in New Issue
Block a user