Skip to content

Instantly share code, notes, and snippets.

View ruthmoog's full-sized avatar
:octocat:

Ruth Baker ruthmoog

:octocat:
View GitHub Profile
@ruthmoog
ruthmoog / blah.md
Created August 6, 2022 10:36 — forked from quii/blah.md
Learn Go with Tests: Intro to acceptance tests

Learn Go with Tests: Intro to acceptance tests

At my current role in SaltPay (we are hiring in London, Porto & Lisbon and can relocate, please DM me / here's a link to our open roles) we've been running in to the need to have "graceful shutdown". This post will give an intro in to what that means, and how to write "acceptance tests" to give yourself confidence in the behaviour of your code.

After reading this you'll know how to share packages with excellent tests to reduce maintenance efforts and increase confidence in the quality of your work.

Just enough info about Kubernetes

We run our software on Kubernetes (k8s). K8s will terminate "pods" (in practice, our software) for various reasons, and a common one is when we push new code that we want to deploy.