github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/worker/finishedworker_test.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package worker_test
     5  
     6  import (
     7  	gc "gopkg.in/check.v1"
     8  
     9  	"github.com/juju/juju/worker"
    10  )
    11  
    12  type FinishedSuite struct{}
    13  
    14  var _ = gc.Suite(&FinishedSuite{})
    15  
    16  func (s *FinishedSuite) TestFinishedWorker(c *gc.C) {
    17  	// Pretty dumb test if interface is implemented
    18  	// and Wait() returns nil.
    19  	var fw worker.Worker = worker.FinishedWorker{}
    20  	c.Assert(fw.Wait(), gc.IsNil)
    21  }