Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Re-enable tests disabled by refactoring (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreAbreu authored and David Barth committed Feb 17, 2017
1 parent e21f399 commit 4f076d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions snappy/app/converge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package snappy
import (
"errors"
"os"
"testing"
"time"

"github.com/snapcore/snapd/client"
Expand All @@ -30,6 +31,8 @@ import (
"github.com/snapcore/snapweb/statetracker"
)

func Test(t *testing.T) { TestingT(t) }

type GetSnapSuite struct {
h Handler
c *FakeSnapdClient
Expand Down
2 changes: 1 addition & 1 deletion statetracker/statetracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (s *StateTracker) State(c snapdclient.SnapdClient, snap *client.Snap) *Snap
if changing, changeID := s.IsTrackedForRunningOperation(snap); changing && c != nil {
change, err := c.Change(changeID)

if err == nil {
if change != nil && err == nil {
for _, task := range change.Tasks {
if uint64(task.Progress.Done) > 1 {
cstate.LocalSize = uint64(task.Progress.Done)
Expand Down

0 comments on commit 4f076d2

Please sign in to comment.