Skip to content

Commit 9718ede

Browse files
committed
[#1930] Removed duplicated test
1 parent 5fadf21 commit 9718ede

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

backend/agent/pdns_test.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -364,25 +364,6 @@ func TestDetectPowerDNSAppConfigPathCmdLineError(t *testing.T) {
364364
require.Nil(t, configPath)
365365
}
366366

367-
// Test that an error is returned when getting a process current working directory fails.
368-
func TestDetectPowerDNSAppConfigPathCwdError(t *testing.T) {
369-
ctrl := gomock.NewController(t)
370-
defer ctrl.Finish()
371-
372-
process := NewMockSupportedProcess(ctrl)
373-
process.EXPECT().getCmdline().Return("/dir/pdns_server --config-name=custom", nil)
374-
375-
executor := NewMockCommandExecutor(ctrl)
376-
executor.EXPECT().IsFileExist(gomock.Any()).DoAndReturn(func(path string) bool {
377-
return path == "/etc/powerdns/pdns-custom.conf"
378-
})
379-
380-
configPath, err := detectPowerDNSAppConfigPath(process, executor, "")
381-
require.NoError(t, err)
382-
require.NotNil(t, configPath)
383-
require.Equal(t, "/etc/powerdns/pdns-custom.conf", *configPath)
384-
}
385-
386367
// Test instantiating and configuring the PowerDNS app using specified config path.
387368
func TestConfigurePowerDNSApp(t *testing.T) {
388369
ctrl := gomock.NewController(t)

0 commit comments

Comments
 (0)