diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-05-05 16:35:03 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-05-05 16:35:03 -0400 |
commit | d2ddf40f56191c1770c3ca93d747a7f1b749f26c (patch) | |
tree | 9cd5d9ac9fc5b9da21fba8df9990c5f927801272 /api/file_benchmark_test.go | |
parent | 696ffb4745bec6306f88c5693b8ded89a47f5de7 (diff) | |
download | chat-d2ddf40f56191c1770c3ca93d747a7f1b749f26c.tar.gz chat-d2ddf40f56191c1770c3ca93d747a7f1b749f26c.tar.bz2 chat-d2ddf40f56191c1770c3ca93d747a7f1b749f26c.zip |
PLT-2600/PLT-2770 Added Get Public Link modal and added new API for public file links (#2892)
* Switched public file links to use a GetLinkModal
* Separated getFile and the new getPublicFile api calls
Diffstat (limited to 'api/file_benchmark_test.go')
-rw-r--r-- | api/file_benchmark_test.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/api/file_benchmark_test.go b/api/file_benchmark_test.go index d73097072..f14d501ff 100644 --- a/api/file_benchmark_test.go +++ b/api/file_benchmark_test.go @@ -68,16 +68,13 @@ func BenchmarkGetPublicLink(b *testing.B) { b.Fatal("Unable to upload file for benchmark") } - data := make(map[string]string) - data["filename"] = filenames[0] - // wait a bit for files to ready time.Sleep(5 * time.Second) // Benchmark Start b.ResetTimer() for i := 0; i < b.N; i++ { - if _, downErr := Client.GetPublicLink(data); downErr != nil { + if _, downErr := Client.GetPublicLink(filenames[0]); downErr != nil { b.Fatal(downErr) } } |