Skip to content

Commit

Permalink
chore: remove unused file and format
Browse files Browse the repository at this point in the history
  • Loading branch information
luohoufu authored and medcl committed Jan 12, 2025
1 parent ae860b0 commit 324a3ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
6 changes: 0 additions & 6 deletions docker/Dockerfile

This file was deleted.

17 changes: 0 additions & 17 deletions docker/docker-compose.yml

This file was deleted.

6 changes: 3 additions & 3 deletions loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func doRequest(config *LoaderConfig, globalCtx util.MapStr, req *fasthttp.Reques
}
condition, buildErr := conditions.NewCondition(item.Assert)
if buildErr != nil {
if config.RunnerConfig.SkipInvalidAssert{
if config.RunnerConfig.SkipInvalidAssert {
loadStats.NumAssertSkipped++
continue
}
Expand Down Expand Up @@ -482,8 +482,8 @@ func (cfg *LoadGenerator) Warmup(config *LoaderConfig) int {
for _, v := range config.Requests {
v.prepareRequest(config, globalCtx, req)

if !req.Validate(){
log.Errorf("invalid request: %v",req.String())
if !req.Validate() {
log.Errorf("invalid request: %v", req.String())
panic("invalid request")
}

Expand Down

0 comments on commit 324a3ba

Please sign in to comment.