Skip to content

Commit

Permalink
移除过期测试
Browse files Browse the repository at this point in the history
  • Loading branch information
fzls committed Oct 3, 2021
1 parent 3d34e1a commit f75aaec
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions qqrobot/qq_robot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package qqrobot

import (
"fmt"
"net/url"
"reflect"
"testing"

Expand Down Expand Up @@ -96,18 +95,3 @@ func Test_version_less(t *testing.T) {
})
}
}

func TestMakeSign(t *testing.T) {
params := url.Values{}
params.Set("app_id", "2159831370")
params.Set("time_stamp", "1605690895")
params.Set("nonce_str", "0.21999282737760117")
params.Set("session", "123456789")
params.Set("question", "月球是什么?")
appKey := "cHQ286kZhNKlpwbj"

want := "562D5D6303E61FB9EE590CB20AC29218"
if got := MakeSign(params, appKey); got != want {
t.Errorf("MakeSign() = %v, want %v", got, want)
}
}

0 comments on commit f75aaec

Please sign in to comment.