Signed-off-by: Daniel Nephin <dnephin@docker.com>
| ... | ... |
@@ -2,18 +2,17 @@ package client |
| 2 | 2 |
|
| 3 | 3 |
import ( |
| 4 | 4 |
"bytes" |
| 5 |
+ "encoding/json" |
|
| 5 | 6 |
"fmt" |
| 6 | 7 |
"io/ioutil" |
| 7 | 8 |
"net/http" |
| 8 | 9 |
"strings" |
| 9 | 10 |
"testing" |
| 10 | 11 |
|
| 11 |
- "golang.org/x/net/context" |
|
| 12 |
- |
|
| 13 |
- "encoding/json" |
|
| 14 | 12 |
"github.com/docker/docker/api/types" |
| 15 | 13 |
"github.com/docker/docker/api/types/filters" |
| 16 | 14 |
"github.com/docker/docker/api/types/registry" |
| 15 |
+ "golang.org/x/net/context" |
|
| 17 | 16 |
) |
| 18 | 17 |
|
| 19 | 18 |
func TestImageSearchAnyError(t *testing.T) {
|
| ... | ... |
@@ -2,8 +2,6 @@ package resumable |
| 2 | 2 |
|
| 3 | 3 |
import ( |
| 4 | 4 |
"fmt" |
| 5 |
- "github.com/stretchr/testify/assert" |
|
| 6 |
- "github.com/stretchr/testify/require" |
|
| 7 | 5 |
"io" |
| 8 | 6 |
"io/ioutil" |
| 9 | 7 |
"net/http" |
| ... | ... |
@@ -11,6 +9,9 @@ import ( |
| 11 | 11 |
"strings" |
| 12 | 12 |
"testing" |
| 13 | 13 |
"time" |
| 14 |
+ |
|
| 15 |
+ "github.com/stretchr/testify/assert" |
|
| 16 |
+ "github.com/stretchr/testify/require" |
|
| 14 | 17 |
) |
| 15 | 18 |
|
| 16 | 19 |
func TestResumableRequestHeaderSimpleErrors(t *testing.T) {
|