diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-07-26 03:05:56 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-07-26 03:05:56 -0400 |
commit | 35c75f06a0a4f321021984830d760e67ca0ef8e5 (patch) | |
tree | f2c2a0f18015cbe587d4f14aa4772cdb915dad10 /modules | |
parent | 545d320648a5ce93e394a3cbc1317f73553b0d75 (diff) | |
download | gitea-35c75f06a0a4f321021984830d760e67ca0ef8e5.tar.gz gitea-35c75f06a0a4f321021984830d760e67ca0ef8e5.zip |
Fix test case
Diffstat (limited to 'modules')
-rw-r--r-- | modules/captcha/image_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/captcha/image_test.go b/modules/captcha/image_test.go index 30b3ea4ae3..35810d0c72 100644 --- a/modules/captcha/image_test.go +++ b/modules/captcha/image_test.go @@ -7,7 +7,7 @@ package captcha import ( "testing" - "github.com/astaxie/beego/utils" + "github.com/gogits/gogs/modules/base" ) type byteCounter struct { @@ -21,7 +21,7 @@ func (bc *byteCounter) Write(b []byte) (int, error) { func BenchmarkNewImage(b *testing.B) { b.StopTimer() - d := utils.RandomCreateBytes(challengeNums, defaultChars...) + d := base.RandomCreateBytes(challengeNums, defaultChars...) b.StartTimer() for i := 0; i < b.N; i++ { NewImage(d, stdWidth, stdHeight) @@ -30,7 +30,7 @@ func BenchmarkNewImage(b *testing.B) { func BenchmarkImageWriteTo(b *testing.B) { b.StopTimer() - d := utils.RandomCreateBytes(challengeNums, defaultChars...) + d := base.RandomCreateBytes(challengeNums, defaultChars...) b.StartTimer() counter := &byteCounter{} for i := 0; i < b.N; i++ { |