mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-11-25 17:30:56 +08:00
style(agent): gofmt the adversarial bench capture-case cleanup
gofmt keeps a one-line function literal only while its body stays short; the asset cleanup in TestAdversarialBenchTrafficRefMissingFromCaptureRefusedPG exceeded that, so gofmt -l flagged the committed file. No behavior change.
This commit is contained in:
@@ -578,7 +578,9 @@ func TestAdversarialBenchTrafficRefMissingFromCaptureRefusedPG(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Cleanup(func() { _, _ = d.Exec(`DELETE FROM assets WHERE id=$1 OR domain LIKE '%p43-bench.example.test'`, assetID) })
|
||||
t.Cleanup(func() {
|
||||
_, _ = d.Exec(`DELETE FROM assets WHERE id=$1 OR domain LIKE '%p43-bench.example.test'`, assetID)
|
||||
})
|
||||
store := d.Exploration(task.ExplorationID)
|
||||
|
||||
tr := p43Capture(t)
|
||||
|
||||
Reference in New Issue
Block a user