Skip to content

Commit

Permalink
fix TestStateMachine_ToGraph
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Aug 23, 2024
1 parent ee69569 commit b866de5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions graph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ func TestStateMachine_ToGraph(t *testing.T) {
got := fn().ToGraph()
name := "testdata/golden/" + name + ".dot"
want, err := os.ReadFile(name)
want = bytes.ReplaceAll(want, []byte("\r\n"), []byte("\n"))
if *update {
if !bytes.Equal([]byte(got), want) {
os.WriteFile(name, []byte(got), 0666)
Expand Down

0 comments on commit b866de5

Please sign in to comment.