bisakhmondal commented on a change in pull request #1615:
URL: https://github.com/apache/apisix-dashboard/pull/1615#discussion_r598314148



##########
File path: api/test/e2e/server_info_delete_test.go
##########
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package e2e
+
+import (
+       "net/http"
+       "testing"
+)
+

Review comment:
       Thanks for the details. I think, it totally depends upon the scheduler 
to decide the ordering, modern schedulers such as go's makes a lot of fancy 
optimisation before executing something. For example, without going over the 
overhead of context switching between multiple goroutines for such small 
instruction, it may wait for others to finish and then start itself up.
   
   You can read the full issue in ginkgo mentioned in this 
[comment](https://github.com/apache/apisix-dashboard/pull/1615#discussion_r597392430).
   
   Now coming back to what you suggested, I had tried that, also even I had 
tried to comment out intermediate describe definitions & describeTable to make 
the test suite containing a single describe & describeTable container with a 
sleep timer of 2 whopping seconds in between all the tests. 2/5 times the suit 
fails. The code is available [here](https://pastebin.com/vbGmh9W0)
   TBH, I also get confused about seeing this erratic nature in ginkgo and 
after googling & reading the issue it's the only logical explanation that I 
came up with. 
   Thanks again.
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to