Skip to content

Commit

Permalink
Fix: test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferrany1 committed Jan 27, 2022
1 parent 89372ae commit 6a7cabf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gen/gen_test.go
Expand Up @@ -88,7 +88,7 @@ func TestGen_BuildInstanceName(t *testing.T) {
}
assert.NoError(t, New().Build(config))

goSourceFile := filepath.Join(config.OutputDir, config.InstanceName+"_"+"docs.go")
goSourceFile := filepath.Join(config.OutputDir, "docs.go")

// Validate default registration name
expectedCode, err := ioutil.ReadFile(goSourceFile)
Expand All @@ -101,6 +101,7 @@ func TestGen_BuildInstanceName(t *testing.T) {

// Custom name
config.InstanceName = "custom"
goSourceFile = filepath.Join(config.OutputDir, config.InstanceName+"_"+"docs.go")
assert.NoError(t, New().Build(config))
expectedCode, err = ioutil.ReadFile(goSourceFile)
if err != nil {
Expand Down

0 comments on commit 6a7cabf

Please sign in to comment.