From 056fce86b8df2da5a574ca180dfa30d15d0c874e Mon Sep 17 00:00:00 2001 From: Godruoyi Date: Thu, 15 Apr 2021 15:48:06 +0800 Subject: [PATCH] remove test for golangci-lint unpass --- snowflake_test.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/snowflake_test.go b/snowflake_test.go index e3693f1..691632b 100644 --- a/snowflake_test.go +++ b/snowflake_test.go @@ -16,12 +16,6 @@ func TestID(t *testing.T) { t.Error("The snowflake should't < 0.") } - id2 := 1644633515267981312 - df := 392111185853 - if id2 != ((df << (snowflake.MachineIDLength + snowflake.SequenceLength)) | 0 | 0) { - t.Error("Create snowflake should be equal 1644633515267981312") - } - mp := make(map[uint64]bool) for i := 0; i < 100000; i++ { id, e := snowflake.NextID()