Skip to content

Commit

Permalink
fix: Patch loki acquisition
Browse files Browse the repository at this point in the history
  • Loading branch information
lperdereau committed Sep 22, 2023
1 parent 2e8b866 commit a8358b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/acquisition/modules/loki/loki_test.go
Expand Up @@ -234,7 +234,7 @@ func feedLoki(logger *log.Entry, n int, title string) error {
if err != nil {
return err
}
if resp.StatusCode != 204 {
if resp.StatusCode != http.StatusNoContent {
b, _ := io.ReadAll(resp.Body)
logger.Error(string(b))
return fmt.Errorf("Bad post status %d", resp.StatusCode)
Expand Down Expand Up @@ -422,7 +422,7 @@ query: >
t.Fatalf("Unexpected error : %s", err)
}
time.Sleep(time.Second * 2)
feedLoki(subLogger, 1, title)
err = feedLoki(subLogger, 1, title)
if err != nil {
t.Fatalf("Unexpected error : %s", err)
}
Expand Down

0 comments on commit a8358b8

Please sign in to comment.