Skip to content

Commit

Permalink
fix bug in test (open-telemetry#2958)
Browse files Browse the repository at this point in the history
* fix bug in test

* do not strictly compare case for error message
  • Loading branch information
hughesjj authored Apr 14, 2023
1 parent 9badd58 commit c6ae5cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testutils/collector_container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package testutils

import (
"os"
"strings"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -111,7 +112,7 @@ func TestCollectorContainerWithInvalidImage(t *testing.T) {
require.NoError(t, err)

err = collector.Start()
require.Contains(t, err.Error(), "Error response from daemon: no such image")
require.Contains(t, strings.ToLower(err.Error()), "error response from daemon: no such image")

err = collector.Shutdown()
require.EqualError(t, err, "cannot invoke Stop() on unstarted container")
Expand Down

0 comments on commit c6ae5cd

Please sign in to comment.