Skip to content

Commit

Permalink
Merge pull request #22 from jckras/fatal
Browse files Browse the repository at this point in the history
RSDK-8853: Replace fatal with test.That in do_command tests
  • Loading branch information
jckras authored Oct 11, 2024
2 parents 046765b + 41f4e18 commit 7b3c05d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
4 changes: 1 addition & 3 deletions tests/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ func testVideoPlayback(t *testing.T, videoPath string) {

func TestModuleConfiguration(t *testing.T) {
fullModuleBinPath, err := getModuleBinPath()
if err != nil {
t.Fatalf("Failed to get module binary path: %v", err)
}
test.That(t, err, test.ShouldBeNil)

// Full configuration
config1 := fmt.Sprintf(`
Expand Down
8 changes: 2 additions & 6 deletions tests/fetch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,9 @@ import (
func TestFetchDoCommand(t *testing.T) {
storageRelativePath := "./video-storage"
storagePath, err := filepath.Abs(storageRelativePath)
if err != nil {
t.Fatalf("Failed to get absolute path: %v", err)
}
test.That(t, err, test.ShouldBeNil)
fullModuleBinPath, err := getModuleBinPath()
if err != nil {
t.Fatalf("Failed to get module bin path: %v", err)
}
test.That(t, err, test.ShouldBeNil)

config1 := fmt.Sprintf(`
{
Expand Down
8 changes: 2 additions & 6 deletions tests/save_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@ import (
func TestSaveDoCommand(t *testing.T) {
storageRelativePath := "./video-storage"
storagePath, err := filepath.Abs(storageRelativePath)
if err != nil {
t.Fatalf("Failed to get absolute path: %v", err)
}
test.That(t, err, test.ShouldBeNil)
fullModuleBinPath, err := getModuleBinPath()
if err != nil {
t.Fatalf("Failed to get module bin path: %v", err)
}
test.That(t, err, test.ShouldBeNil)

config1 := fmt.Sprintf(`
{
Expand Down

0 comments on commit 7b3c05d

Please sign in to comment.