Skip to content

Commit

Permalink
Fix import ordering.
Browse files Browse the repository at this point in the history
Signed-off-by: Akram Ahmad <sftwr2020@gmail.com>
  • Loading branch information
akramtexas committed Mar 12, 2020
1 parent e1fa7ed commit 659b91f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion internal/common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"crypto/md5"
"encoding/json"
"fmt"
"github.com/OneOfOne/xxhash"
"io"
"io/ioutil"
"net/http"
Expand All @@ -28,6 +27,7 @@ import (
contract "github.com/edgexfoundry/go-mod-core-contracts/models"
"github.com/google/uuid"

"github.com/OneOfOne/xxhash"
"github.com/ugorji/go/codec"
)

Expand Down
24 changes: 12 additions & 12 deletions internal/handler/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,18 @@ func init() {
common.LoggingClient = logger.NewClient("command_test", false, "./device-simple.log", "INFO")
}

//func TestParseWriteParamsWrongParamName(t *testing.T) {
// profileName := "notFound"
// ro := []contract.ResourceOperation{{Index: ""}}
// params := "{ \"key\": \"value\" }"
//
// r := newRequestWithContentType(clients.ContentTypeJSON)
// _, err := parseWriteParams(profileName, ro, params, r)
//
// if err == nil {
// t.Error("expected error")
// }
//}
func TestParseWriteParamsWrongParamName(t *testing.T) {
profileName := "notFound"
ro := []contract.ResourceOperation{{Index: ""}}
params := "{ \"key\": \"value\" }"
r := newRequestWithContentType(clients.ContentTypeJSON)

_, err := parseWriteParams(profileName, ro, params, r)

if err == nil {
t.Error("expected error")
}
}

func TestParseWriteParamsNoParams(t *testing.T) {
profileName := "notFound"
Expand Down

0 comments on commit 659b91f

Please sign in to comment.