summaryrefslogtreecommitdiff
path: root/execdriver/lxc/info_test.go
diff options
context:
space:
mode:
authorunclejack <unclejack@users.noreply.github.com>2014-04-09 01:56:01 +0300
committerunclejack <unclejack@users.noreply.github.com>2014-04-09 01:56:01 +0300
commite128a606e39fa63c6b4fd6e53a1d88cf00aad868 (patch)
tree199ee7eb6678ffecd2ddad95fce794c795ad5183 /execdriver/lxc/info_test.go
parent143c9707a9fafc39e1d9747f528db97b2564f01e (diff)
parentdc9c28f51d669d6b09e81c2381f800f1a33bb659 (diff)
downloaddocker-release-0.10.tar.gz
Merge pull request #5079 from unclejack/bump_v0.10.0release-0.100.10.1-hotfixes
Bump version to v0.10.0
Diffstat (limited to 'execdriver/lxc/info_test.go')
-rw-r--r--execdriver/lxc/info_test.go36
1 files changed, 0 insertions, 36 deletions
diff --git a/execdriver/lxc/info_test.go b/execdriver/lxc/info_test.go
deleted file mode 100644
index edafc02511..0000000000
--- a/execdriver/lxc/info_test.go
+++ /dev/null
@@ -1,36 +0,0 @@
-package lxc
-
-import (
- "testing"
-)
-
-func TestParseRunningInfo(t *testing.T) {
- raw := `
- state: RUNNING
- pid: 50`
-
- info, err := parseLxcInfo(raw)
- if err != nil {
- t.Fatal(err)
- }
- if !info.Running {
- t.Fatal("info should return a running state")
- }
- if info.Pid != 50 {
- t.Fatalf("info should have pid 50 got %d", info.Pid)
- }
-}
-
-func TestEmptyInfo(t *testing.T) {
- _, err := parseLxcInfo("")
- if err == nil {
- t.Fatal("error should not be nil")
- }
-}
-
-func TestBadInfo(t *testing.T) {
- _, err := parseLxcInfo("state")
- if err != nil {
- t.Fatal(err)
- }
-}