Skip to content

Commit

Permalink
refactor: change default KEPLOY_MODE to OFF (keploy#138)
Browse files Browse the repository at this point in the history
Signed-off-by: slayerjain <[email protected]>

Signed-off-by: slayerjain <[email protected]>
  • Loading branch information
slayerjain authored Oct 4, 2022
1 parent 6725450 commit 52e3ce8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import(
...
ctx := mock.NewContext(mock.Config{
Name: "<name_for_mocks>", // unique for every mock. if you dont provide during record it would be generated. Its compulsory during tests.
Mode: keploy.MODE_RECORD, // Or keploy.MODE_TEST, Or keploy.MODE_OFF. Default is keploy.MODE_TEST
Mode: keploy.MODE_RECORD, // Or keploy.MODE_TEST, Or keploy.MODE_OFF. Default is keploy.MODE_OFF
Path: "<local_path_for_yaml>", // optional. relative(./internals) or absolute(/users/xyz/...)
CTX: <existing context>, // optional. can be used to pass existing running context.
})
Expand All @@ -41,7 +41,7 @@ ctx := mock.NewContext(mock.Config{
```go
ctx := mock.NewContext(mock.Config{
Name: "<name_for_mocks>", // unique for every mock. if you dont provide during record it would be generated. Its compulsory during tests.
Mode: keploy.MODE_TEST, // Or keploy.MODE_TEST, Or keploy.MODE_OFF. Default is keploy.MODE_TEST
Mode: keploy.MODE_TEST, // Or keploy.MODE_TEST, Or keploy.MODE_OFF. Default is keploy.MODE_OFF
Path: "<local_path_for_yaml>", // optional. relative(./internals) or absolute(/users/xyz/...)
CTX: <existing context>, // optional. can be used to pass existing running context.
})
Expand Down
2 changes: 1 addition & 1 deletion keploy/keploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (

var (
// mode is set to record, if unset
mode = MODE_RECORD
mode = MODE_OFF
result = make(chan bool, 1)
grpcClient proto.RegressionServiceClient // decoupled from keploy instance to use it in unit-test mocking infrastructure
MockPath string
Expand Down

0 comments on commit 52e3ce8

Please sign in to comment.