mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore(Makefile): update golden files as part of make gen (#17039)
Updating golden files is an unnecessary extra step in addition to gen that is easily overlooked, leading to the developer noticing the issue in CI leading to lost developer time waiting for tests to complete.
This commit is contained in:
@@ -174,8 +174,8 @@ func diffFileSystem(t *testing.T, fs afero.Fs) {
|
||||
}
|
||||
|
||||
want, err := os.ReadFile(goldenFile)
|
||||
require.NoError(t, err, "open golden file, run \"make update-golden-files\" and commit the changes")
|
||||
assert.Empty(t, cmp.Diff(want, actual), "golden file mismatch (-want +got): %s, run \"make update-golden-files\", verify and commit the changes", goldenFile)
|
||||
require.NoError(t, err, "open golden file, run \"make gen/golden-files\" and commit the changes")
|
||||
assert.Empty(t, cmp.Diff(want, actual), "golden file mismatch (-want +got): %s, run \"make gen/golden-files\", verify and commit the changes", goldenFile)
|
||||
}
|
||||
|
||||
func dumpFileSystem(t *testing.T, fs afero.Fs) []byte {
|
||||
|
||||
Reference in New Issue
Block a user