Skip to content

Commit 081cec0

Browse files
committed
fix: create logs dir on windows
1 parent 1231a82 commit 081cec0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hashicorp_plugin_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ func TestHashicorpGRPCGoPlugin(t *testing.T) {
3232
buildHashicorpGoPlugin()
3333
defer removeHashicorpGoPlugin()
3434

35+
logFile := filepath.Join("docs", "logs", "hashicorp_grpc_go.log")
3536
plugin, err := Init("fungo/examples/debugtalk.bin",
3637
WithDebugLogger(true),
37-
WithLogFile("docs/logs/hashicorp_grpc_go.log"),
38+
WithLogFile(logFile),
3839
WithDisableTime(true))
3940
if err != nil {
4041
t.Fatal(err)
@@ -48,10 +49,11 @@ func TestHashicorpRPCGoPlugin(t *testing.T) {
4849
buildHashicorpGoPlugin()
4950
defer removeHashicorpGoPlugin()
5051

52+
logFile := filepath.Join("docs", "logs", "hashicorp_rpc_go.log")
5153
os.Setenv(fungo.PluginTypeEnvName, "rpc")
5254
plugin, err := Init("fungo/examples/debugtalk.bin",
5355
WithDebugLogger(true),
54-
WithLogFile("docs/logs/hashicorp_rpc_go.log"),
56+
WithLogFile(logFile),
5557
WithDisableTime(true))
5658
if err != nil {
5759
t.Fatal(err)

0 commit comments

Comments
 (0)