Skip to content

Commit

Permalink
Test patch update
Browse files Browse the repository at this point in the history
  • Loading branch information
kavir1698 committed Apr 4, 2024
1 parent 7e80890 commit 29ad659
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions datasetUtils/checkForNewVersion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ func TestCheckForNewVersion(t *testing.T) {
interactiveFlag: true,
userInput: "n\n",
},
{
name: "New path available, interactive mode",
currentVersion: "0.9.0",
mockResponse: `{"tag_name": "v0.9.1"}`,
expectedLog: "You should upgrade to a newer version",
expectedError: nil,
interactiveFlag: true,
userInput: "y\n",
},
}

for _, tt := range tests {
Expand Down

0 comments on commit 29ad659

Please sign in to comment.