Skip to content

Commit

Permalink
fix: set default timeout to 300 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre818181 committed Jan 7, 2025
1 parent e97554d commit ce68609
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ func init() {
log.Info("Parsed test config", zap.Any("testConfig", testConfig))
for i, test := range testConfig {
test.ID = i
if test.Timeout == 0 {
test.Timeout = 300
}
}
}
}
Expand Down Expand Up @@ -197,7 +200,6 @@ func (h *Handler) JobTake(c *gin.Context) {

if currentTest >= len(testConfig) {
sendResultsToGraphQL("COMPLETED", nil)
time.Sleep(time.Duration(10) * time.Second)
h.log.Error("No more tests", zap.Int("current_test", currentTest))

c.JSON(500, gin.H{
Expand Down

0 comments on commit ce68609

Please sign in to comment.