Skip to content

Commit

Permalink
Merge pull request #149 from codecrafters-io/CC-1226
Browse files Browse the repository at this point in the history
CC-1226: Use updated RunCLI interface from tester-utils
  • Loading branch information
ryan-gang committed May 29, 2024
2 parents b1e81d9 + 8dd3722 commit 84d76f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/codecrafters-io/redis-tester
go 1.21

require (
github.com/codecrafters-io/tester-utils v0.2.23
github.com/codecrafters-io/tester-utils v0.2.24
github.com/go-redis/redis v6.15.9+incompatible
github.com/hdt3213/rdb v1.0.16
github.com/stretchr/testify v1.9.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583jCggY9gE99b6G5LEC39OIiVsWj+R97kbl5odCEk=
github.com/codecrafters-io/tester-utils v0.2.23 h1:gfb38k2xLmkR5zXxBOoxPxy93FB/e5NQnNtzbnTbIJA=
github.com/codecrafters-io/tester-utils v0.2.23/go.mod h1:VgP0WmmRsA8L1urWGMXPW4Zv5jcwHwR0LdKZ8ZAEFT4=
github.com/codecrafters-io/tester-utils v0.2.24 h1:8IwKd70n9BMfVqNoGxRJItFj769p6h6LxCx4OMwWoq8=
github.com/codecrafters-io/tester-utils v0.2.24/go.mod h1:VgP0WmmRsA8L1urWGMXPW4Zv5jcwHwR0LdKZ8ZAEFT4=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down
11 changes: 1 addition & 10 deletions internal/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,9 @@
package internal

import (
"fmt"

testerutils "github.com/codecrafters-io/tester-utils"
)

func RunCLI(env map[string]string) int {
tester, err := testerutils.NewTester(env, testerDefinition)

if err != nil {
fmt.Printf("%s", err)
return 1
}

return tester.RunCLI()
return testerutils.RunCLI(env, testerDefinition)
}

0 comments on commit 84d76f2

Please sign in to comment.