Skip to content

Commit

Permalink
fix: create logs dir on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
debugtalk committed Aug 20, 2023
1 parent 1231a82 commit 081cec0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hashicorp_plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ func TestHashicorpGRPCGoPlugin(t *testing.T) {
buildHashicorpGoPlugin()
defer removeHashicorpGoPlugin()

logFile := filepath.Join("docs", "logs", "hashicorp_grpc_go.log")
plugin, err := Init("fungo/examples/debugtalk.bin",
WithDebugLogger(true),
WithLogFile("docs/logs/hashicorp_grpc_go.log"),
WithLogFile(logFile),
WithDisableTime(true))
if err != nil {
t.Fatal(err)
Expand All @@ -48,10 +49,11 @@ func TestHashicorpRPCGoPlugin(t *testing.T) {
buildHashicorpGoPlugin()
defer removeHashicorpGoPlugin()

logFile := filepath.Join("docs", "logs", "hashicorp_rpc_go.log")
os.Setenv(fungo.PluginTypeEnvName, "rpc")
plugin, err := Init("fungo/examples/debugtalk.bin",
WithDebugLogger(true),
WithLogFile("docs/logs/hashicorp_rpc_go.log"),
WithLogFile(logFile),
WithDisableTime(true))
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 081cec0

Please sign in to comment.