Skip to content

Commit

Permalink
creating seperate config files for unit test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
lokesh.balla committed Nov 8, 2023
1 parent 7943a73 commit fff21d2
Show file tree
Hide file tree
Showing 3 changed files with 666 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ MetricsConfig:
}

func TestReadDefaults(t *testing.T) {
c, err := NewConfig("../config_complete.yaml", "../rules_complete.yaml", func(err error) {})
c, err := NewConfig("../config_unit_tests.yaml", "../rules_unit_tests.yaml", func(err error) {})

if err != nil {
t.Error(err)
Expand Down Expand Up @@ -187,7 +187,7 @@ func TestReadDefaults(t *testing.T) {
}

func TestReadRulesConfig(t *testing.T) {
c, err := NewConfig("../config_complete.yaml", "../rules_complete.yaml", func(err error) {})
c, err := NewConfig("../config_unit_tests.yaml", "../rules_unit_tests.yaml", func(err error) {})

if err != nil {
t.Error(err)
Expand Down
Loading

0 comments on commit fff21d2

Please sign in to comment.