Skip to content

Commit

Permalink
Add no-op Setenv to GinkgoT
Browse files Browse the repository at this point in the history
  • Loading branch information
onsi committed Sep 9, 2021
1 parent 81705fc commit a12d699
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ginkgo_dsl.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func GinkgoT(optionalOffset ...int) GinkgoTInterface {
//in the testing package's T.
type GinkgoTInterface interface {
Cleanup(func())
Setenv(key, value string)
Error(args ...interface{})
Errorf(format string, args ...interface{})
Fail()
Expand Down
5 changes: 5 additions & 0 deletions internal/testingtproxy/testing_t_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ func (t *ginkgoTestingTProxy) Cleanup(func()) {
// No-op
}

func (t *ginkgoTestingTProxy) Setenv(kev, value string) {
fmt.Println("Setenv is a noop for Ginkgo at the moment but will be implemented in V2")
// No-op until Cleanup is implemented
}

func (t *ginkgoTestingTProxy) Error(args ...interface{}) {
t.fail(fmt.Sprintln(args...), t.offset)
}
Expand Down

0 comments on commit a12d699

Please sign in to comment.