From 82dfff074c72e9f6ff9d21774beeac012ed7d0b5 Mon Sep 17 00:00:00 2001 From: Konstantin8105 Date: Sun, 3 May 2020 01:35:50 +0300 Subject: [PATCH] box: add test comment --- box_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/box_test.go b/box_test.go index 625ee00..36e3797 100644 --- a/box_test.go +++ b/box_test.go @@ -75,6 +75,8 @@ func TestBox(t *testing.T) { snapshotFilename := filepath.Join(".", snapshotPath, tcs[i].name) + // for update test screens run in console: + // UPDATE=true go test if os.Getenv("UPDATE") == "true" { if err := ioutil.WriteFile(snapshotFilename, buf.Bytes(), 0644); err != nil { t.Fatalf("Cannot write snapshot to file: %v", err)