From 558caf0f2278aa6c3dee6c2c2f6cd367605e1f33 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Sat, 5 Aug 2023 17:05:54 +0200 Subject: [PATCH] chore: manage flake --- source/utils/strings_test.go | 3 +-- testing/{asstes => assets}/code1.md | 0 2 files changed, 1 insertion(+), 2 deletions(-) rename testing/{asstes => assets}/code1.md (100%) diff --git a/source/utils/strings_test.go b/source/utils/strings_test.go index 90ea217..b500d1f 100644 --- a/source/utils/strings_test.go +++ b/source/utils/strings_test.go @@ -16,7 +16,7 @@ func TestMaskCodeBlocks(t *testing.T) { count int expected int }{ - {"/testing/asstes/code1.md", "code1.md", 3, 9}, + {"/testing/assets/code1.md", "code1.md", 3, 9}, } for _, table := range tables { @@ -24,7 +24,6 @@ func TestMaskCodeBlocks(t *testing.T) { p, _ := os.Getwd() p = filepath.Dir(p) // go to parent directory p = filepath.Dir(p) // go to parent directory - p = filepath.Dir(p) // go to parent directory p = filepath.Join(p, table.input) code, err := os.ReadFile(p) diff --git a/testing/asstes/code1.md b/testing/assets/code1.md similarity index 100% rename from testing/asstes/code1.md rename to testing/assets/code1.md -- GitLab