WHEN you’re sure that it’s not your changes that made the test to fail, AND you don’t have time to fix a test, NEVER comment it out.

Just skip it:

// WRONG
// func TestFoo() {
//  // Some logic here which has to at least remain compilable
// }

// OKAY (but even better to just fix the test)
func TestFoo() {
  t.Skip("flaky test")
  // Some logic here which has to at least remain compilable
}

Example of a bad approach: