memcache_test.go 338 B

1234567891011121314151617181920
  1. package archive
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestPingMc(t *testing.T) {
  8. var (
  9. c = context.Background()
  10. )
  11. convey.Convey("Ping", t, func(ctx convey.C) {
  12. err := d.Ping(c)
  13. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  14. ctx.So(err, convey.ShouldBeNil)
  15. })
  16. })
  17. }