Skip to content

Commit

Permalink
test(gui): fix gui test not working on branches that start with relea…
Browse files Browse the repository at this point in the history
…se-x.y* (#8356)

Signed-off-by: slonka <[email protected]>
  • Loading branch information
slonka authored Nov 14, 2023
1 parent 5a9c87f commit 92e74a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/api-server/gui_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ var _ = Describe("GUI Server", func() {
Expect(received).To(WithTransform(func(in []byte) []byte {
// Remove the part of the file name that changes always
r := regexp.MustCompile(`index[\-\.][a-z0-9]+\.`).ReplaceAll(in, []byte("index."))
r = regexp.MustCompile(`"[0-9]+\.[0-9]+\.[0-9]+[^"]*"`).ReplaceAll(r, []byte(`"0.0.0"`))
r = regexp.MustCompile(`"unknown"`).ReplaceAll(r, []byte(`"0.0.0"`))
r = regexp.MustCompile(`"version":"[^"]*"`).ReplaceAll(r, []byte(`"version":"0.0.0"`))
if r[len(r)-1] != '\n' {
r = append(r, '\n')
}
Expand Down

0 comments on commit 92e74a6

Please sign in to comment.