Skip to content

Commit

Permalink
Fix panic when testing images without TRITON_TEST set (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
kusor authored May 11, 2020
1 parent fadae24 commit f719b4e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Unreleased

## 1.8.4 (May 11 2020)

- Fix panic when testing images without TRITON_TEST set [#186]

## 1.8.3 (May 6 2020)

- Add support for `brand`, `flexible_disk` and `disks` for packages [#182].
Expand Down
4 changes: 2 additions & 2 deletions compute/images_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

var (
fakeImageID = "2b683a82-a066-11e3-97ab-2faa44701c5a"
localImage *compute.Image
localImage compute.Image
)

func TestAccImagesList(t *testing.T) {
Expand Down Expand Up @@ -63,7 +63,7 @@ func TestAccImagesList(t *testing.T) {
return fmt.Errorf("No images returned by list images")
}

localImage = images.([]*compute.Image)[0]
localImage = *images.([]*compute.Image)[0]

if localImage.Name == "" {
return fmt.Errorf("Returned image should have a name")
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

// Version represents main version number of the current release
// of the Triton-go SDK.
const Version = "1.8.3"
const Version = "1.8.4"

// Prerelease adds a pre-release marker to the version.
//
Expand Down

0 comments on commit f719b4e

Please sign in to comment.